/**********************************************************************
 *File		Name		:	sys_events.h
 *Creat		Time		:	2019/7/26
 *Author		:	Bryan He
 *File		Discreption	:
 *
 ************************************************************************/
#ifndef __SYS_EVENTS_H__H
#define __SYS_EVENTS_H__H

// #define USR_EVENT_BASED         0X4000
// #define SYS_EVENT_BASED         0X8000

typedef enum {

  EVENT_INVALID = 0,
  /*****user event start from 0x4000***/
  USR_EVENT_BASED,
  USR_EVENT_MAIN_VOL_UP = USR_EVENT_BASED,
  USR_EVENT_MAIN_VOL_DW,
  USR_EVENT_POWER_ON,
  USR_EVENT_POWER_OFF,
  USR_EVENT_END,
  USR_EVENT_PRINTF_TEST,
  USR_EVENT_IO_KEY_POLLING,
  USR_EVENT_BT_MSG_RX_POLLING,
  USR_EVENT_BT_NEXT,
  USR_EVENT_BT_PREV,
  USR_EVENT_PLAY_PAUSE,
  USR_EVENT_BT_VOL_UP,
  USR_EVENT_BT_VOL_DW,
  USR_EVENT_VOL_UP_HOLD,
  USR_EVENT_VOL_DW_HOLD,
  USR_EVENT_BT_PAIRING,
  USR_DELAY_INIT_AMP,
  USR_SWITCH_NEXT_SOURCE,
  USR_BT_STATUS_CHANGE,
  USR_SWITCH_TO_DEFAULT_SOURCE,
  USR_SWITCH_TO_AUX,
  USR_SWITCH_TO_USB,
  USR_SWITCH_TO_BT,

  USR_DISPLAY_CHARGE_CURR,
  USR_DIS_CHARGE_TIMEOUT,
  USR_READ_TX_SINK_PDOS,
  /*****user event end******************************/

  /*****System event start from 0x8000***/
  SYS_EVENT_BASED,
  SYS_EVENT_KEY_POLLING = SYS_EVENT_BASED,
  SYS_EVENT_LED_REFRESH,
  SYS_EVENT_READ_CHARGE_STATUS,

    SYS_EVENT_END,
    SYS_EVENT_BUTTON_LOOP,
    SYS_EVENT_VK_UP,
    SYS_EVENT_VK_DOWN,
    SYS_KEY_EVENT,
    /*****System event end******************************/

    /********************factory test event***********************/
    TEST_EVENT_BASED,
    TEST_TRIGGER_START = TEST_EVENT_BASED,
    TEST_EVENT_END,
    /**********************factory test event end**************************/

    MO_EVENT_MAX

} MO_EVENTS_T;

#endif
